<form action="/api/user/edit" id="j_custom_form" data-toggle="validate">
    <input type="hidden" name="id" value="<%=user.id%>">
    <table class="table table-condensed table-hover" width="100%">
        <tbody>
            <tr>
                <td>
                    <label for="j_user_name" class="control-label x85">姓名：</label>
                    <input type="text" name="name" id="j_user_name" value="<%=user.name%>" data-rule="required" size="15">
                </td>
                <td>
                    <label for="j_user_fname" class="control-label x85">昵称：</label>
                    <input type="text" name="nickname" id="j_user_nickname" value="<%=user.nickname%>" data-rule="required;letters" size="15">
                </td>
            </tr>
            <tr>
                <td>
                    <label for="j_user_name" class="control-label x85">邮箱：</label>
                    <input type="text" name="email" id="j_user_email" value="<%=user.email%>" data-rule="required" size="15">
                </td>
                <td>
                    <label for="j_user_area" class="control-label x85">所在地区：</label>
                    <input type="text" name="location" id="j_user_location" value="<%=user.location%>" data-rule="required;letters" size="15">
                </td>
            </tr>

            <tr>
                <td>
                    <label for="j_user_website" class="control-label x85">个人网站：</label>
                    <input type="text" name="website" id="j_user_website" value="<%=user.website%>" data-rule="required;" size="15">
                </td>
                <td>
                    <label for="j_user_mobile" class="control-label x85">手机：</label>
                    <input type="text" name="mobile" id="j_user_mobile" value="<%=user.mobile%>" data-rule="required;" size="15">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <label for="j_user_note" class="control-label x85">个人说明：</label>
                    <textarea name="note" id="j_user_note" data-toggle="autoheight" cols="60" value="<%=user.note%>" rows="1"><%=user.note%></textarea>
                </td>
            </tr>
        </tbody>
    </table>
    <form>
        <div class="bjui-pageFooter">
            <ul>
                <li><button type="button" class="btn-close" data-icon="close">取消</button></li>
                <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
            </ul>
        </div>

        <script>
            // function save() {
            //     var name = $('#j_user_name').val();
            //     alert(name);
            //     $(this).dialog("close", 'addUser');
            //     //$(this).dialog("closeCurrent");//关闭
            // }
            // $(form).bjuiajax('ajaxForm', options)
            // $(#j_custom_form).bjuiajax('ajaxform', {
            //     reload: false
            // });
        </script>